31 IF E = 1 THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "You should type only one number": PRINT "without letters or characters": PRINT "here. Please try again.": GOTO 11
41 IF LEN( MID$ (AN$,EP)) >8 THEN GOSUB 771: PRINT "The computer can handle large": PRINT "numbers, but please pick a number": PRINT "less than 8 characters long for": PRINT "now. Try again.": GOTO 11
91 IF E = 1 THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "You should type only one number": PRINT "without letters or characters": PRINT "here. Please try again.": GOTO 81
101 IF LEN( MID$ (AN$,EP)) >10 THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "The computer can handle large": PRINT "numbers, but please pick a number": PRINT "less than 10 characters long for": PRINT "now. Try again.": GOTO 81
201 TT = 13:BT = 24: GOSUB 761:SV = 13: GOSUB 891:SV = 14: GOSUB 881: VTAB 20: HTAB 1: GOSUB 1041:TT = 0:BT = 12: GOSUB 771: PRINT "Then the INPUT statement waits": PRINT "for you to type in your name.": PRINT "Go ahead, type in your name.":ET = 1
211 TT = 20:BT = 24: GOSUB 761: VTAB 20:CP = 1: HTAB 2: CALL -958: GOSUB 801:W = 38:B = 10:T = 3:L = 1:X = 1: GOSUB 1241:BS = X:VA$(3) = MID$ (AN$,BS): IF E = 1 THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "You should type your name here.": PRINT "Please try again.": GOTO 211
221 IF LEN(VA$(3)) >10 THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "The computer can handle large": PRINT "strings, but please pick a name": PRINT "less than 10 characters long for": PRINT "now. Try again.": GOTO 211
271 TT = 20:BT = 24: GOSUB 751: GOSUB 761: VTAB 21:CP = 0: GOSUB 801:W = 38:B = 9:T = 3:L = 1:X = 1: GOSUB 1241: IF E = 1 THEN GOSUB 771: PRINT "You must type NEW and": PRINT "press RETURN to clear memory.": PRINT "Please try again.": GOTO 271
281 IF MID$ (AN$,X,3) < >"NEW" THEN GOSUB 771: PRINT "You typed " MID$ (BU$,BS)".": PRINT "NEW is the command you should use": PRINT "to clear memory.": PRINT "Please try again.": GOTO 271
311 TT = 18:BT = 24: GOSUB 751: GOSUB 761: VTAB 20: GOSUB 801:W = 38:B = 11:T = 3:L = 1:X = 1:TT = 0:BT = 12: GOSUB 761: GOSUB 1241: IF E = 1 THEN GOSUB 771: PRINT "To cause the computer to accept": PRINT "a flavor of ice cream, you must": PRINT "type 20 INPUT I$": GOTO 311
321 BS = X:SL = 2: GOSUB 1291: IF LN$ < >"20" THEN GOSUB 771: PRINT "You should start this INPUT": PRINT "statement by typing 20. Please": PRINT "try again.": GOTO 311
331 X = X +2: GOSUB 1241: IF E = 1 THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "You should follow the line": PRINT "number with INPUT I$. Please": PRINT "try again.": GOTO 311
341 GOSUB 1341: ON E = 1 GOTO 311: GOSUB 1241: IF E = 1 THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "You should type INPUT and": PRINT "follow it with the name of the": PRINT "correct variable (I$).": GOTO 311
351 IF MID$ (AN$,X,1) = CHR$(34) THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "You shouldn't use quotation": PRINT "marks with the INPUT statement.": PRINT "Please try again.": GOTO 311
361 SL = LEN(AN$): FOR Y = LEN(AN$) TO X STEP -1: IF MID$ (AN$,Y,1) = " " THEN SL = SL -1
371 IF MID$ (AN$,Y,1) < >" " THEN Y = X
381 NEXT Y:VA$(3) = MID$ (AN$,X,SL -X +1): IF VA$(3) < >"I$" THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "You must use the variable name I$": PRINT "to get the INPUT statement to": PRINT "work. Please try again.": GOTO 311
421 IF LEN(VA$(4)) >20 THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "The computer can handle large": PRINT "strings, but please pick a flavor": PRINT "less than 20 characters long for": PRINT "now. Try again.": GOTO 411
901 IF SN = 1 THEN HTAB 2: PRINT "10 PRINT "; CHR$(34);"PLEASE PICK A NUMBER"; CHR$(34)
911 IF SN = 2 THEN PRINT "PLEASE PICK A NUMBER"
921 RETURN
931 IF SN = 1 THEN HTAB 2: PRINT "20 INPUT N"
941 IF SN = 2 THEN PRINT "?"
951 RETURN
961 IF SN = 1 THEN HTAB 2: PRINT "30 PRINT "; CHR$(34);"YOUR FAVORITE NUMBER IS:"; CHR$(34)
971 IF SN = 2 THEN PRINT "YOUR FAVORITE NUMBER IS:"
981 RETURN
991 IF SN = 1 THEN HTAB 2: PRINT "40 PRINT N"
1001 RETURN
1011 IF SN = 1 THEN HTAB 2: PRINT "10 PRINT " CHR$(34);"WHAT IS YOUR NAME"; CHR$(34)
1021 IF SN = 2 THEN PRINT "WHAT IS YOUR NAME"
1031 RETURN
1041 IF SN = 1 THEN HTAB 2: PRINT "20 INPUT N$"
1051 IF SN = 2 THEN PRINT "?"
1061 RETURN
1071 IF SN = 1 THEN HTAB 2: PRINT "30 PRINT "; CHR$(34);"THAT'S A GREAT NAME,"; CHR$(34)
1081 IF SN = 2 THEN PRINT "THAT'S A GREAT NAME,"
1091 RETURN
1101 IF SN = 1 THEN HTAB 2: PRINT "40 PRINT N$"
1111 RETURN
1121 HTAB 2: PRINT "50 END": RETURN
1131 IF SN = 1 THEN HTAB 2: PRINT "10 PRINT "; CHR$(34);"WHAT'S YOUR FAVORITE"; CHR$(34)
1141 IF SN = 2 THEN PRINT " WHAT'S YOUR FAVORITE"
1151 RETURN
1161 IF SN = 1 THEN HTAB 2: PRINT "15 PRINT "; CHR$(34);"FLAVOR OF ICE CREAM?"; CHR$(34)
1171 IF SN = 2 THEN PRINT " FLAVOR OF ICE CREAM?"
1181 RETURN
1191 IF SN = 1 THEN HTAB 2: PRINT "30 PRINT I$"
1201 RETURN
1211 IF SN = 1 THEN HTAB 2: PRINT "40 PRINT "; CHR$(34)"SURE IS A GOOD FLAVOR!"; CHR$(34)
1221 IF SN = 2 THEN PRINT " SURE IS A GOOD FLAVOR!"
1231 RETURN
1241 E = 0
1251 IF X > LEN(AN$) THEN E = 1: RETURN
1261 ON MID$ (AN$,X,1) < >" " GOTO 1281
1271 X = X +1: GOTO 1251
1281 RETURN
1291 LN$ = MID$ (AN$,X,SL): RETURN
1301 ON SL > LEN(AN$) GOTO 1321: IF MID$ (AN$,SL,1) < > CHR$(34) THEN SL = SL +1: GOTO 1301
1311 IF MID$ (AN$,SL,1) = CHR$(34) THEN RETURN
1321 E = 1: GOSUB 771: PRINT "You typed "; MID$ (BU$,BS);".": PRINT "You forgot to end your statement": PRINT "with a quotation mark. Please": PRINT "try again.": RETURN
1331 E = 1: GOSUB 771: PRINT "You typed "; MID$ (BU$,BS);".": PRINT "It would help for now if you": PRINT "would enclose something inside": PRINT "the quotations. Try again.": RETURN
1341 E = 0: IF MID$ (AN$,X,5) = "INPUT" THEN X = X +5: RETURN
1361 E = 0: IF MID$ (AN$,X,3) = "RUN" THEN X = X +2: RETURN
1371 E = 1: GOSUB 771: PRINT "You typed "; MID$ (BU$,BS);".": PRINT "You should have typed RUN.": PRINT "Please try again.": RETURN
1381 E = 0: IF MID$ (AN$,X,4) = "LIST" THEN X = X +3: RETURN
1391 E = 1: GOSUB 771: PRINT "You typed "; MID$ (BU$,BS);".": PRINT "You should have typed LIST.": PRINT "Please try again.": RETURN
1401 E = 0: IF X > = LEN(AN$) THEN 1461
1411 FOR Y = X +1 TO LEN(AN$): IF MID$ (AN$,Y,1) < >" " THEN E = 1
1421 NEXT Y: IF LD = 1 AND E = 1 THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "You shouldn't type anything after": PRINT "the line number if you wish to": PRINT "to delete a line. Try again.": RETURN
1431 IF LD = 2 AND E = 1 THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "Please don't type anything after": PRINT "the program name or it will be-": PRINT "come part of the name. Try again.": RETURN
1441 IF LD = 3 AND E = 1 THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "If you type anything after the": PRINT "program name the computer will": PRINT "try to find the wrong program.": PRINT "Please try again.": RETURN
1451 IF E = 1 THEN GOSUB 771: PRINT "You typed "; MID$ (BU$,BS)".": PRINT "Please don't type anything after": PRINT "the command. It will just": PRINT "complicate things. Try again.": RETURN
1461 RETURN
1471 IF EP > LEN(AN$) THEN E = 1: RETURN
1481 E = 0: FOR Y = EP TO LEN(AN$): IF MID$ (AN$,Y,1) < >" " THEN E = 2:Y = LEN(AN$)
1491 NEXT Y: IF E < >2 THEN E = 1: RETURN
1501 E = 0:MM = 0:PM = 0: FOR Y = EP TO LEN(AN$): ON ASC( MID$ (AN$,Y,1)) < >46 GOTO 1521:PM = PM +1
1511 IF MID$ (AN$,Y,2) = ".-" THEN EP = Y
1521 IF ASC( MID$ (AN$,Y,1)) = 45 THEN MM = MM +1
1531 IF MM >1 OR PM >1 THEN E = 1:Y = LEN(AN$): GOTO 1561
1541 IF ASC( MID$ (AN$,Y,1)) = 32 THEN 1561
1551 IF ASC( MID$ (AN$,Y,1)) <45 OR ASC( MID$ (AN$,Y,1)) = 47 OR ASC( MID$ (AN$,Y,1)) >57 THEN E = 1:Y = LEN(AN$)
1561 NEXT Y: RETURN
1571 TT = TT(1):BT = BT(1):W = W(1):B = B(1):T = T(1):L = L(1): GOSUB 751: GOSUB 761: VTAB IV: GOSUB 801:X = 1: GOSUB 1241: IF E = 1 THEN GOSUB 771: PRINT "Please type RUN and": PRINT "press RETURN. Try again.": GOTO 1571
1581 BS = X: GOSUB 1361: ON E = 1 GOTO 1571: GOSUB 1401: ON E = 1 GOTO 1571
1591 RETURN
1601 TT = TT(1):BT = BT(1):W = W(1):B = B(1):T = T(1):L = L(1): GOSUB 751: GOSUB 761: VTAB IV: GOSUB 801:X = 1: GOSUB 1241: IF E = 1 THEN GOSUB 771: PRINT "Please type LIST and": PRINT "press RETURN. Try again.": GOTO 1601
1611 BS = X: GOSUB 1381: ON E = 1 GOTO 1601: GOSUB 1401: ON E = 1 GOTO 1601